API Documentation
BufferCastWrapper.h
1 // BufferCastWrapper.h
3 //
5 
7 {
14  template <typename T>
15  class BufferCastWrapper final
16  {
17  public :
18 
19  // Environment update
27  static void updateEnvironment (nkScripts::Environment* env, const nkMemory::StringView& typeName, const nkMemory::StringView& typeNameUserObject = "") ;
28 
29  // Callbacks
30  // Constructor, destructor
47  static void destructor (void* toDestroy) ;
48 
49  // Getters
72  } ;
73 }
nkAstraeus::lua::nkMemoryWrap::BufferCastWrapper::constructor
static nkScripts::OutputValue constructor(const nkScripts::DataStack &stack)
nkScripts::Environment
Defines an environment in which scripts can execute.
Definition: Environment.h:14
nkAstraeus::lua::nkMemoryWrap::BufferCastWrapper::destructor
static void destructor(void *toDestroy)
nkScripts::DataStack
std::vector< FunctionParameter > DataStack
A data stack, mainly used for parameters.
Definition: FunctionDefines.h:8
nkScripts::FunctionParameter
A function parameter, used within the stack of arguments.
Definition: FunctionParameter.h:25
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkAstraeus::lua::nkMemoryWrap
Encompasses the wrapping of nkMemory for Lua.
Definition: Constants.h:7
nkAstraeus::lua::nkMemoryWrap::BufferCastWrapper::updateEnvironment
static void updateEnvironment(nkScripts::Environment *env, const nkMemory::StringView &typeName, const nkMemory::StringView &typeNameUserObject="")
nkAstraeus::lua::nkMemoryWrap::BufferCastWrapper::getSize
static nkScripts::OutputValue getSize(const nkScripts::DataStack &stack)
nkAstraeus::lua::nkMemoryWrap::BufferCastWrapper::getData
static nkScripts::OutputValue getData(const nkScripts::DataStack &stack)
nkAstraeus::lua::nkMemoryWrap::BufferCastWrapper
Wraps a nkMemory::BufferCast<T> and offers functions for use in scripting.
Definition: BufferCastWrapper.h:16